home *** CD-ROM | disk | FTP | other *** search
- object Form1: TForm1
- Left = 7
- Top = 55
- Width = 772
- Height = 490
- Caption = 'Sample calendar'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- Position = poScreenCenter
- OnCreate = FormCreate
- PixelsPerInch = 96
- TextHeight = 13
- object LabelMonthName: TLabel
- Left = 64
- Top = 8
- Width = 163
- Height = 24
- Caption = 'LabelMonthName'
- Font.Charset = ANSI_CHARSET
- Font.Color = clBlue
- Font.Height = -21
- Font.Name = 'Times New Roman'
- Font.Style = [fsBold]
- ParentFont = False
- end
- object LabelYear: TLabel
- Left = 9
- Top = 8
- Width = 95
- Height = 24
- Caption = 'LabelYear'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clBlue
- Font.Height = -21
- Font.Name = 'Times New Roman'
- Font.Style = [fsBold]
- ParentFont = False
- end
- object Label2: TLabel
- Left = 423
- Top = 239
- Width = 40
- Height = 13
- Caption = 'Events'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clPurple
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = [fsBold]
- ParentFont = False
- end
- object Label1: TLabel
- Left = 28
- Top = 240
- Width = 27
- Height = 13
- Caption = 'Year'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clPurple
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = [fsBold]
- ParentFont = False
- end
- object Label3: TLabel
- Left = 94
- Top = 240
- Width = 36
- Height = 13
- Caption = 'Month'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clPurple
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = [fsBold]
- ParentFont = False
- end
- object Label4: TLabel
- Left = 165
- Top = 240
- Width = 34
- Height = 13
- Caption = 'Week'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clPurple
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = [fsBold]
- ParentFont = False
- end
- object Label5: TLabel
- Left = 248
- Top = 240
- Width = 23
- Height = 13
- Caption = 'Day'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clPurple
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = [fsBold]
- ParentFont = False
- end
- object Label6: TLabel
- Left = 339
- Top = 240
- Width = 45
- Height = 13
- Caption = 'Defined'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clPurple
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = [fsBold]
- ParentFont = False
- end
- object Label7: TLabel
- Left = 320
- Top = 288
- Width = 22
- Height = 13
- Caption = 'Year'
- end
- object Label8: TLabel
- Left = 320
- Top = 312
- Width = 30
- Height = 13
- Caption = 'Month'
- end
- object Label9: TLabel
- Left = 320
- Top = 336
- Width = 47
- Height = 13
- Caption = 'Monthday'
- end
- object Label10: TLabel
- Left = 320
- Top = 360
- Width = 29
- Height = 13
- Caption = 'Week'
- end
- object Label11: TLabel
- Left = 320
- Top = 384
- Width = 46
- Height = 13
- Caption = 'Weekday'
- end
- object Label12: TLabel
- Left = 304
- Top = 426
- Width = 108
- Height = 13
- Caption = '(Esc to clear weekday)'
- end
- object Label13: TLabel
- Left = 8
- Top = 425
- Width = 65
- Height = 13
- Caption = 'First weekday'
- end
- object DrawGrid1: TDrawGrid
- Left = 10
- Top = 32
- Width = 743
- Height = 201
- BorderStyle = bsNone
- Color = clSilver
- ColCount = 8
- Ctl3D = False
- DefaultColWidth = 100
- DefaultRowHeight = 28
- DefaultDrawing = False
- FixedCols = 0
- RowCount = 7
- FixedRows = 0
- GridLineWidth = 0
- ParentCtl3D = False
- ScrollBars = ssNone
- TabOrder = 0
- OnDrawCell = DrawGrid1DrawCell
- OnSelectCell = DrawGrid1SelectCell
- end
- object ButtonNextYear: TButton
- Left = 10
- Top = 256
- Width = 63
- Height = 25
- Caption = 'Forward'
- TabOrder = 1
- OnClick = ButtonNextYearClick
- end
- object ButtonPrevYear: TButton
- Left = 10
- Top = 288
- Width = 63
- Height = 25
- Caption = 'Back'
- TabOrder = 2
- OnClick = ButtonPrevYearClick
- end
- object ButtonNextMonth: TButton
- Left = 78
- Top = 256
- Width = 63
- Height = 25
- Caption = 'Forward'
- TabOrder = 3
- OnClick = ButtonNextMonthClick
- end
- object ButtonPrevMonth: TButton
- Left = 78
- Top = 288
- Width = 63
- Height = 25
- Caption = 'Back'
- TabOrder = 4
- OnClick = ButtonPrevMonthClick
- end
- object ButtonNextWeek: TButton
- Left = 150
- Top = 256
- Width = 63
- Height = 25
- Caption = 'Forward'
- TabOrder = 8
- OnClick = ButtonNextWeekClick
- end
- object ButtonPrevWeek: TButton
- Left = 150
- Top = 288
- Width = 63
- Height = 25
- Caption = 'Back'
- TabOrder = 9
- OnClick = ButtonPrevWeekClick
- end
- object ButtonToday: TButton
- Left = 224
- Top = 256
- Width = 75
- Height = 25
- Caption = 'Today'
- TabOrder = 13
- OnClick = ButtonTodayClick
- end
- object ButtonGo: TButton
- Left = 306
- Top = 256
- Width = 113
- Height = 25
- Caption = 'Go!'
- TabOrder = 16
- OnClick = ButtonGoClick
- end
- object ButtonTomorrow: TButton
- Left = 224
- Top = 288
- Width = 75
- Height = 25
- Caption = 'Tomorrow'
- TabOrder = 14
- OnClick = ButtonTomorrowClick
- end
- object ButtonYesterday: TButton
- Left = 224
- Top = 320
- Width = 75
- Height = 25
- Caption = 'Yesterday'
- TabOrder = 15
- OnClick = ButtonYesterdayClick
- end
- object ButtonThisweek: TButton
- Left = 150
- Top = 320
- Width = 63
- Height = 25
- Caption = 'This'
- TabOrder = 10
- OnClick = ButtonThisweekClick
- end
- object ButtonThisMonth: TButton
- Left = 78
- Top = 320
- Width = 63
- Height = 25
- Caption = 'This'
- TabOrder = 5
- OnClick = ButtonThisMonthClick
- end
- object ButtonNextM: TButton
- Left = 78
- Top = 352
- Width = 63
- Height = 25
- Caption = 'Next'
- TabOrder = 6
- OnClick = ButtonNextMClick
- end
- object ButtonLastMonth: TButton
- Left = 78
- Top = 384
- Width = 63
- Height = 25
- Caption = 'Last'
- TabOrder = 7
- OnClick = ButtonLastMonthClick
- end
- object ButtonNextW: TButton
- Left = 150
- Top = 352
- Width = 63
- Height = 25
- Caption = 'Next'
- TabOrder = 11
- OnClick = ButtonNextWClick
- end
- object ButtonLastWeek: TButton
- Left = 150
- Top = 384
- Width = 63
- Height = 25
- Caption = 'Last'
- TabOrder = 12
- OnClick = ButtonLastWeekClick
- end
- object EditYear: TEdit
- Left = 377
- Top = 288
- Width = 41
- Height = 21
- TabOrder = 17
- end
- object ListBoxYE: TListBox
- Left = 424
- Top = 256
- Width = 249
- Height = 161
- Color = clSilver
- ItemHeight = 13
- TabOrder = 22
- OnDblClick = ListBoxYEDblClick
- end
- object ButtonAdd: TButton
- Left = 680
- Top = 256
- Width = 75
- Height = 25
- Caption = 'Add...'
- TabOrder = 23
- OnClick = ButtonAddClick
- end
- object ButtonDelete: TButton
- Left = 680
- Top = 288
- Width = 75
- Height = 25
- Caption = 'Delete'
- TabOrder = 24
- OnClick = ButtonDeleteClick
- end
- object ButtonSave: TButton
- Left = 680
- Top = 352
- Width = 75
- Height = 25
- Caption = 'Save...'
- TabOrder = 26
- OnClick = ButtonSaveClick
- end
- object ButtonLoad: TButton
- Left = 680
- Top = 384
- Width = 75
- Height = 25
- Caption = 'Load...'
- TabOrder = 27
- OnClick = ButtonLoadClick
- end
- object EditMonth: TEdit
- Left = 385
- Top = 312
- Width = 33
- Height = 21
- TabOrder = 18
- end
- object EditMonthday: TEdit
- Left = 385
- Top = 336
- Width = 33
- Height = 21
- TabOrder = 19
- end
- object EditWeek: TEdit
- Left = 385
- Top = 360
- Width = 33
- Height = 21
- TabOrder = 20
- end
- object ComboBoxWeekday: TComboBox
- Left = 305
- Top = 400
- Width = 115
- Height = 21
- Style = csDropDownList
- ItemHeight = 13
- Items.Strings = (
- 'Sunday'
- 'Monday'
- 'Tuesday'
- 'Wednesday'
- 'Thursday'
- 'Friday'
- 'Saturday')
- TabOrder = 21
- OnKeyDown = ComboBoxWeekdayKeyDown
- end
- object ButtonEdit: TButton
- Left = 680
- Top = 320
- Width = 75
- Height = 25
- Caption = 'Edit...'
- TabOrder = 25
- OnClick = ButtonEditClick
- end
- object ComboBoxFirstWd: TComboBox
- Left = 77
- Top = 417
- Width = 137
- Height = 21
- Style = csDropDownList
- ItemHeight = 13
- Items.Strings = (
- 'Sunday'
- 'Monday'
- 'Tuesday'
- 'Wednesday'
- 'Thursday'
- 'Friday'
- 'Saturday')
- TabOrder = 28
- OnChange = ComboBoxFirstWdChange
- end
- object RGEvents: TRadioGroup
- Left = 427
- Top = 419
- Width = 246
- Height = 34
- Columns = 2
- ItemIndex = 0
- Items.Strings = (
- 'Yearly'
- 'On current date')
- TabOrder = 29
- OnClick = RGEventsClick
- end
- object OpenDialog1: TOpenDialog
- Filter = 'Kronos datypes|*.kdt'
- Left = 456
- Top = 40
- end
- object SaveDialog1: TSaveDialog
- Left = 496
- Top = 40
- end
- object Kronos1: TKronos
- Year = 1998
- Month = 2
- MonthDay = 22
- FirstWeekDay = Sunday
- WeekDay = Sunday
- Week = 9
- DayNumber = 53
- WeekHolidays = [Sunday]
- DefaultToPresentDay = True
- MinYear = 1
- MaxYear = 9999
- AllowUserCalc = True
- HidePredefineds = False
- OnChangeYear = Kronos1ChangeYear
- OnChangeMonth = Kronos1ChangeMonth
- OnChangeMonthNumber = Kronos1ChangeMonthNumber
- OnChangeMonthDay = Kronos1ChangeMonthDay
- OnChangeDate = Kronos1ChangeDate
- OnCalcDaytype = Kronos1CalcDaytype
- Left = 400
- Top = 40
- end
- end
-